class ValidatorLogin {
    static async login(v) {
        console.log('login验证器',v)
        if (!v.username) {
            throw new global.errs.ParameterException('name必填')
        }
        if (/[^\w\d\u4e00-\u9fa5]+/ig.test(v.username)) {
            throw new global.errs.ParameterException('仅限数字,中英文')
        }
        console.log('login验证器全员通过')
    }


}

module.exports=ValidatorLogin
